/*
 *    Copyright (c) 2018-2025, proj All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the proj developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: proj
 */

package com.ykht.proj.coupon.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 公司表
 *
 * @author proj code generator
 * @date 2020-11-17 14:05:06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "公司表")
public class CnCompanyVo extends Model<CnCompanyVo> {
private static final long serialVersionUID = 1L;



    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 公司名称
     */
    @ApiModelProperty(value="公司名称")
    private String name;
    /**
     * 电话
     */
    @ApiModelProperty(value="电话")
    private String phone;
    /**
     * 法人
     */
    @ApiModelProperty(value="法人")
    private String legalPerson;
    /**
     * 注册地址
     */
    @ApiModelProperty(value="注册地址")
    private String address;
    /**
     * 营业执照
     */
    @ApiModelProperty(value="营业执照")
    private String license;
    /**
     * 法人身份证正面
     */
    @ApiModelProperty(value="法人身份证正面")
    private String idPositive;
    /**
     * 法人身份证反面
     */
    @ApiModelProperty(value="法人身份证反面")
    private String idSide;
    /**
     * 创建人
     */
    @ApiModelProperty(value="创建人")
    private Long createUser;
    /**
     * 修改人
     */
    @ApiModelProperty(value="修改人")
    private Long updateUser;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private LocalDateTime updateTime;
    /**
     * 0可用1删除
     */
    @ApiModelProperty(value="0可用1删除")
	@TableLogic
    private Integer delFlag;

	@ApiModelProperty(value="0上架1下架")
	private Integer display;

	@ApiModelProperty(value="创建人类型")
	private Integer createType;
    /**
     * 登录人Id
     */
    @ApiModelProperty(value="登录人Id")
    private Long loginId;
    /**
     * 租户ID
     */
    @ApiModelProperty(value="租户ID",hidden=true)
    private Integer tenantId;

	/**
	 * 公司名称
	 * 用来解决实体类中有的属性但是数据表中没有的字段
	 */
	@ApiModelProperty(value="公司展示")
	private String brandName;

	@ApiModelProperty(value = "用户名")
	private String username;

	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "父级ID（根据user_type去判断是品牌的还是门店的）")
	private Long parentId;

	@ApiModelProperty(value = "用户类型: 0系统管理员1公司2品牌3门店 4 服务员5客户公司")
	private	Integer userType;

	@ApiModelProperty(value = "手机号")
	private String userPhone;
	@ApiModelProperty(value = "wx昵称")
	private String nickName;

	/**
	 * 下架时间
	 */
	@ApiModelProperty(value="下架时间")
	private LocalDateTime offTime;

	/**
	 * 下架时间
	 */
	@ApiModelProperty(value="上架时间")
	private LocalDateTime onTime;

//	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
//	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@ApiModelProperty(value="合同开始时间")
	private LocalDateTime contractStartTime;

//	@JsonDeserialize(using = LocalDateTimeDeserializer.class)
//	@JsonSerialize(using = LocalDateTimeSerializer.class)
	@ApiModelProperty(value="合同结束时间")
	private LocalDateTime contractEndTime;




}
